package top.zxybird.yun.serialization.thrift.model;

import com.google.common.collect.Maps;
import lombok.Data;

import java.util.Map;

@Data
public class TMap extends TType {

  private Map value;

  public TMap() {
    this.setType(TTypeConstant.MAP);
    this.value = Maps.newHashMap();
  }


  public void put(TType key, TType value) {
    this.value.put(key, value);
  }

}
